Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Commit

Permalink
Merge pull request #1262 from sarangan12/StreamFix
Browse files Browse the repository at this point in the history
Regen SDK after Stream fix
  • Loading branch information
sarangan12 authored Feb 6, 2018
2 parents 520d4aa + 7e850d7 commit 7bf28ec
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1348,7 +1348,6 @@ def analyze_image_in_stream_async(image, visual_features:nil, details:nil, langu
}
}
request_content = self.serialize(request_mapper, image)
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil

path_template = 'analyze'

Expand Down Expand Up @@ -1488,7 +1487,6 @@ def generate_thumbnail_in_stream_async(width, height, image, smart_cropping:fals
}
}
request_content = self.serialize(request_mapper, image)
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil

path_template = 'generateThumbnail'

Expand Down Expand Up @@ -1639,7 +1637,6 @@ def recognize_printed_text_in_stream_async(detect_orientation, image, language:n
}
}
request_content = self.serialize(request_mapper, image)
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil

path_template = 'ocr'

Expand Down Expand Up @@ -1767,7 +1764,6 @@ def describe_image_in_stream_async(image, max_candidates:'1', custom_headers:nil
}
}
request_content = self.serialize(request_mapper, image)
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil

path_template = 'describe'

Expand Down Expand Up @@ -1886,7 +1882,6 @@ def tag_image_in_stream_async(image, custom_headers:nil)
}
}
request_content = self.serialize(request_mapper, image)
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil

path_template = 'tag'

Expand Down Expand Up @@ -2011,7 +2006,6 @@ def analyze_image_by_domain_in_stream_async(model, image, custom_headers:nil)
}
}
request_content = self.serialize(request_mapper, image)
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil

path_template = 'models/{model}/analyze'

Expand Down Expand Up @@ -2129,7 +2123,6 @@ def recognize_text_in_stream_async(image, detect_handwriting:false, custom_heade
}
}
request_content = self.serialize(request_mapper, image)
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil

path_template = 'recognizeText'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,6 @@ def find_faces_file_input_async(image_stream, cache_image:nil, custom_headers:ni
}
}
request_content = @client.serialize(request_mapper, image_stream)
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil

path_template = 'contentmoderator/moderate/v1.0/ProcessImage/FindFaces'

Expand Down Expand Up @@ -878,7 +877,6 @@ def ocrfile_input_async(language, image_stream, cache_image:nil, enhanced:false,
}
}
request_content = @client.serialize(request_mapper, image_stream)
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil

path_template = 'contentmoderator/moderate/v1.0/ProcessImage/OCR'

Expand Down Expand Up @@ -985,7 +983,6 @@ def evaluate_file_input_async(image_stream, cache_image:nil, custom_headers:nil)
}
}
request_content = @client.serialize(request_mapper, image_stream)
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil

path_template = 'contentmoderator/moderate/v1.0/ProcessImage/Evaluate'

Expand Down Expand Up @@ -1356,7 +1353,6 @@ def match_file_input_async(image_stream, list_id:nil, cache_image:nil, custom_he
}
}
request_content = @client.serialize(request_mapper, image_stream)
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil

path_template = 'contentmoderator/moderate/v1.0/ProcessImage/Match'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,6 @@ def add_image_file_input_async(list_id, image_stream, tag:nil, label:nil, custom
}
}
request_content = @client.serialize(request_mapper, image_stream)
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil

path_template = 'contentmoderator/lists/v1.0/imagelists/{listId}/images'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1327,7 +1327,6 @@ def add_video_transcript_async(team_name, review_id, vttfile, custom_headers:nil
}
}
request_content = @client.serialize(request_mapper, vttfile)
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil

path_template = 'contentmoderator/review/v1.0/teams/{teamName}/reviews/{reviewId}/transcript'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -881,7 +881,6 @@ def detect_in_stream_async(image, return_face_id:true, return_face_landmarks:fal
}
}
request_content = @client.serialize(request_mapper, image)
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil

path_template = 'detect'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -813,7 +813,6 @@ def add_face_from_stream_async(face_list_id, image, user_data:nil, target_face:n
}
}
request_content = @client.serialize(request_mapper, image)
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil

path_template = 'facelists/{faceListId}/persistedFaces'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1113,7 +1113,6 @@ def add_person_face_from_stream_async(person_group_id, person_id, image, user_da
}
}
request_content = @client.serialize(request_mapper, image)
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil

path_template = 'persongroups/{personGroupId}/persons/{personId}/persistedFaces'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,6 @@ def begin_create_or_update_async(resource_group_name, automation_account_name, r
}
}
request_content = @client.serialize(request_mapper, runbook_content)
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil

path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/draft/content'

Expand Down

0 comments on commit 7bf28ec

Please sign in to comment.