alibabacloud-gateway-spi/python/alibabacloud_gateway_spi/models.py [32:65]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        self.headers = headers
        self.query = query
        self.body = body
        self.stream = stream
        self.host_map = host_map
        self.pathname = pathname
        self.product_id = product_id
        self.action = action
        self.version = version
        self.protocol = protocol
        self.method = method
        self.auth_type = auth_type
        self.body_type = body_type
        self.req_body_type = req_body_type
        self.style = style
        self.credential = credential
        self.signature_version = signature_version
        self.signature_algorithm = signature_algorithm
        self.user_agent = user_agent

    def validate(self):
        self.validate_required(self.pathname, 'pathname')
        self.validate_required(self.product_id, 'product_id')
        self.validate_required(self.action, 'action')
        self.validate_required(self.version, 'version')
        self.validate_required(self.protocol, 'protocol')
        self.validate_required(self.method, 'method')
        self.validate_required(self.auth_type, 'auth_type')
        self.validate_required(self.body_type, 'body_type')
        self.validate_required(self.req_body_type, 'req_body_type')
        self.validate_required(self.credential, 'credential')
        self.validate_required(self.user_agent, 'user_agent')

    def to_map(self):
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



alibabacloud-gateway-spi/python2/alibabacloud_gateway_spi/models.py [13:46]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        self.headers = headers  # type: dict[str, str]
        self.query = query  # type: dict[str, str]
        self.body = body  # type: any
        self.stream = stream  # type: READABLE
        self.host_map = host_map  # type: dict[str, str]
        self.pathname = pathname  # type: str
        self.product_id = product_id  # type: str
        self.action = action  # type: str
        self.version = version  # type: str
        self.protocol = protocol  # type: str
        self.method = method  # type: str
        self.auth_type = auth_type  # type: str
        self.body_type = body_type  # type: str
        self.req_body_type = req_body_type  # type: str
        self.style = style  # type: str
        self.credential = credential  # type: CredentialClient
        self.signature_version = signature_version  # type: str
        self.signature_algorithm = signature_algorithm  # type: str
        self.user_agent = user_agent  # type: str

    def validate(self):
        self.validate_required(self.pathname, 'pathname')
        self.validate_required(self.product_id, 'product_id')
        self.validate_required(self.action, 'action')
        self.validate_required(self.version, 'version')
        self.validate_required(self.protocol, 'protocol')
        self.validate_required(self.method, 'method')
        self.validate_required(self.auth_type, 'auth_type')
        self.validate_required(self.body_type, 'body_type')
        self.validate_required(self.req_body_type, 'req_body_type')
        self.validate_required(self.credential, 'credential')
        self.validate_required(self.user_agent, 'user_agent')

    def to_map(self):
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



