Skip to content

Commit

Permalink
Update auto generated go snappi
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Jan 12, 2024
1 parent 4a7bcbb commit 8c3876b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 19 deletions.
8 changes: 4 additions & 4 deletions gosnappi/gosnappi.go
Original file line number Diff line number Diff line change
Expand Up @@ -322083,11 +322083,11 @@ func (obj *flowSnmpv2CVariableBinding) validateObj(vObj *validation, set_default

if obj.obj.ObjectIdentifier != nil {

if len(*obj.obj.ObjectIdentifier) < 3 || len(*obj.obj.ObjectIdentifier) > 10000 {
if len(*obj.obj.ObjectIdentifier) > 10000 {
vObj.validationErrors = append(
vObj.validationErrors,
fmt.Sprintf(
"3 <= length of FlowSnmpv2CVariableBinding.ObjectIdentifier <= 10000 but Got %d",
"None <= length of FlowSnmpv2CVariableBinding.ObjectIdentifier <= 10000 but Got %d",
len(*obj.obj.ObjectIdentifier)))
}

Expand Down Expand Up @@ -341923,11 +341923,11 @@ func (obj *flowSnmpv2CVariableBindingValue) validateObj(vObj *validation, set_de

if obj.obj.ObjectIdentifierValue != nil {

if len(*obj.obj.ObjectIdentifierValue) < 3 || len(*obj.obj.ObjectIdentifierValue) > 10000 {
if len(*obj.obj.ObjectIdentifierValue) > 10000 {
vObj.validationErrors = append(
vObj.validationErrors,
fmt.Sprintf(
"3 <= length of FlowSnmpv2CVariableBindingValue.ObjectIdentifierValue <= 10000 but Got %d",
"None <= length of FlowSnmpv2CVariableBindingValue.ObjectIdentifierValue <= 10000 but Got %d",
len(*obj.obj.ObjectIdentifierValue)))
}

Expand Down
10 changes: 5 additions & 5 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
--prefer-binary
grpcio-tools~=1.35.0 ; python_version <= '3.6'
grpcio-tools~=1.54.2 ; python_version > '3.6'
grpcio~=1.54.2 ; python_version > '3.6'
grpcio~=1.35.0 ; python_version <= '3.6'
grpcio~=1.54.2 ; python_version > '3.6'
grpcio-tools~=1.54.2 ; python_version > '3.6'
requests
protobuf~=3.15.0 ; python_version <= '3.6'
protobuf~=4.23.3 ; python_version > '3.6'
PyYAML
semantic_version
protobuf~=4.23.3 ; python_version > '3.6'
protobuf~=3.15.0 ; python_version <= '3.6'
urllib3
semantic_version
5 changes: 0 additions & 5 deletions snappi/docs/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8018,9 +8018,7 @@ components:
\ byte.\n The value is derived by appending 7 bits from each of the\
\ concatenated bytes i.e (0x14 *128^1) + (0x78 * 128^0) = 2680."
type: string
format: hex
maxLength: 10000
minLength: 3
default: '0.1'
value:
$ref: '#/components/schemas/Flow.Snmpv2c.VariableBindingValue'
Expand Down Expand Up @@ -8073,7 +8071,6 @@ components:
description: |-
It contains the hex bytes of the value to be sent. As of now it is restricted to 5000 bytes.
type: string
format: hex
maxLength: 10000
default: string
x-field-uid: 3
Expand Down Expand Up @@ -8101,9 +8098,7 @@ components:
\ byte.\n The value is derived by appending 7 bits from each of the\
\ concatenated bytes i.e (0x14 *128^1) + (0x78 * 128^0) = 2680."
type: string
format: hex
maxLength: 10000
minLength: 3
default: '0.1'
ip_address_value:
$ref: '#/components/schemas/Flow.Snmpv2c.VariableBindingIPValue'
Expand Down
5 changes: 0 additions & 5 deletions snappi/snappi.py
Original file line number Diff line number Diff line change
Expand Up @@ -90581,8 +90581,6 @@ class FlowSnmpv2cVariableBinding(OpenApiObject):
_TYPES = {
"object_identifier": {
"type": str,
"format": "hex",
"minLength": 3,
"maxLength": 10000,
},
"value": {"type": "FlowSnmpv2cVariableBindingValue"},
Expand Down Expand Up @@ -90661,13 +90659,10 @@ class FlowSnmpv2cVariableBindingValue(OpenApiObject):
"integer_value": {"type": "PatternFlowSnmpv2cVariableBindingValueIntegerValue"},
"string_value": {
"type": str,
"format": "hex",
"maxLength": 10000,
},
"object_identifier_value": {
"type": str,
"format": "hex",
"minLength": 3,
"maxLength": 10000,
},
"ip_address_value": {"type": "FlowSnmpv2cVariableBindingIPValue"},
Expand Down

0 comments on commit 8c3876b

Please sign in to comment.