text stringlengths 11 6.3k | embedding listlengths 768 768 |
|---|---|
func (m ModelDeprecationInfo) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
populate(objectMap, "fineTune", m.FineTune)
populate(objectMap, "inference", m.Inference)
return json.Marshal(objectMap)
} | [
0.12876130640506744,
-0.17055368423461914,
0.2002979815006256,
-0.14812380075454712,
-0.6245893239974976,
-0.29543209075927734,
-0.3440248668193817,
0.471767395734787,
-0.7116938829421997,
-0.0733305960893631,
-1.1780864000320435,
0.08279333263635635,
0.4941014349460602,
1.3508259057998657... |
func (m *ModelDeprecationInfo) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
return fmt.Errorf("unmarshalling type %T: %v", m, err)
}
for key, val := range rawMsg {
var err error
switch key {
case "fineTune":
err = unpopulat... | [
-0.18848775327205658,
0.7239426374435425,
0.4552268981933594,
-1.0782943964004517,
-0.8076112866401672,
-0.5161019563674927,
-0.3437279164791107,
-0.26138558983802795,
-1.1707814931869507,
0.35238251090049744,
-0.6968551278114319,
-0.16432875394821167,
0.44473788142204285,
1.16530215740203... |
func (m ModelListResult) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
populate(objectMap, "nextLink", m.NextLink)
populate(objectMap, "value", m.Value)
return json.Marshal(objectMap)
} | [
-0.824863612651825,
-0.21734550595283508,
-0.09776157140731812,
-0.26983457803726196,
-0.7492766976356506,
-1.2200148105621338,
0.31452676653862,
-0.03321219980716705,
0.4008282423019409,
-0.10593238472938538,
-2.0606327056884766,
0.0778491422533989,
-0.45762360095977783,
1.007868051528930... |
func (m *ModelListResult) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
return fmt.Errorf("unmarshalling type %T: %v", m, err)
}
for key, val := range rawMsg {
var err error
switch key {
case "nextLink":
err = unpopulate(val... | [
-0.8535668849945068,
0.4246913492679596,
0.21020513772964478,
-1.112104892730713,
-0.9181803464889526,
-1.368059754371643,
0.29492563009262085,
-0.45747506618499756,
-0.3182101249694824,
0.3030325472354889,
-1.414513349533081,
-0.37575632333755493,
-0.3874872624874115,
0.9833325743675232,
... |
func (m ModelSKU) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
populate(objectMap, "capacity", m.Capacity)
populateTimeRFC3339(objectMap, "deprecationDate", m.DeprecationDate)
populate(objectMap, "name", m.Name)
populate(objectMap, "rateLimits", m.RateLimits)
populate(objectMap, "usageName", ... | [
-0.9912033081054688,
-0.04194177687168121,
0.3108666241168976,
0.4455821216106415,
-0.42479458451271057,
-0.946576714515686,
0.17727859318256378,
-0.06840143352746964,
-0.17645737528800964,
-0.22106602787971497,
-0.79570072889328,
0.3398504853248596,
0.2540132701396942,
1.262331247329712,
... |
func (m *ModelSKU) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
return fmt.Errorf("unmarshalling type %T: %v", m, err)
}
for key, val := range rawMsg {
var err error
switch key {
case "capacity":
err = unpopulate(val, "Capa... | [
-1.2098934650421143,
0.7194936275482178,
0.7447353005409241,
-0.09546959400177002,
-0.6084718108177185,
-0.7221680879592896,
0.5109337568283081,
-0.3521539568901062,
-0.5423954129219055,
0.0433032251894474,
0.1145227700471878,
0.3290381133556366,
0.01426300872117281,
1.4401946067810059,
... |
func (m MultiRegionSettings) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
populate(objectMap, "regions", m.Regions)
populate(objectMap, "routingMethod", m.RoutingMethod)
return json.Marshal(objectMap)
} | [
-0.7494422793388367,
-0.27828890085220337,
0.2809768617153168,
-0.24656902253627777,
-0.8884882926940918,
-0.3846060335636139,
-0.21870304644107819,
-0.18922914564609528,
0.25075873732566833,
0.264290988445282,
-1.021406888961792,
-0.11856822669506073,
-0.22474241256713867,
1.2346330881118... |
func (m *MultiRegionSettings) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
return fmt.Errorf("unmarshalling type %T: %v", m, err)
}
for key, val := range rawMsg {
var err error
switch key {
case "regions":
err = unpopulate(... | [
-0.8102828860282898,
0.6372138857841492,
0.555024266242981,
-0.9413692355155945,
-1.2672579288482666,
-0.41092243790626526,
-0.009222285822033882,
-0.5624911785125732,
-0.2478618621826172,
0.84775710105896,
-0.33750125765800476,
-0.5419206619262695,
-0.4088941514492035,
1.1073834896087646,... |
func (n NetworkRuleSet) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
populate(objectMap, "defaultAction", n.DefaultAction)
populate(objectMap, "ipRules", n.IPRules)
populate(objectMap, "virtualNetworkRules", n.VirtualNetworkRules)
return json.Marshal(objectMap)
} | [
0.17402604222297668,
-0.2185417115688324,
-0.05183570459485054,
-0.6939457654953003,
0.0992877185344696,
-0.12690486013889313,
0.2764202356338501,
-0.43223342299461365,
-0.2690509557723999,
0.5997908711433411,
-0.16888746619224548,
-0.0018290403531864285,
-0.8465845584869385,
0.42652133107... |
func (n *NetworkRuleSet) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
return fmt.Errorf("unmarshalling type %T: %v", n, err)
}
for key, val := range rawMsg {
var err error
switch key {
case "defaultAction":
err = unpopulate... | [
0.016949493438005447,
0.43394723534584045,
0.29826444387435913,
-1.4111136198043823,
-0.2747117280960083,
-0.26265832781791687,
0.23382891714572906,
-0.6871887445449829,
-0.6455653309822083,
0.7591447830200195,
0.1461542844772339,
-0.20615538954734802,
-0.7637319564819336,
0.58277064561843... |
func (o Operation) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
populate(objectMap, "actionType", o.ActionType)
populate(objectMap, "display", o.Display)
populate(objectMap, "isDataAction", o.IsDataAction)
populate(objectMap, "name", o.Name)
populate(objectMap, "origin", o.Origin)
return jso... | [
-1.0687634944915771,
-0.18960553407669067,
0.4041745662689209,
0.06935025751590729,
-0.41446632146835327,
-0.5092837810516357,
1.5107172727584839,
0.51598060131073,
0.7180243730545044,
0.9404948949813843,
-0.9801434874534607,
-0.2032579779624939,
0.3773822486400604,
-0.1651415079832077,
... |
func (o *Operation) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
return fmt.Errorf("unmarshalling type %T: %v", o, err)
}
for key, val := range rawMsg {
var err error
switch key {
case "actionType":
err = unpopulate(val, "A... | [
-1.2780400514602661,
0.6086000204086304,
0.7631412148475647,
-0.5833513736724854,
-0.718738853931427,
-0.5321179032325745,
1.145770788192749,
0.041778210550546646,
0.021232612431049347,
1.216574788093567,
-0.32490676641464233,
-1.0097498893737793,
-0.1865745186805725,
0.09513983130455017,
... |
func (o OperationDisplay) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
populate(objectMap, "description", o.Description)
populate(objectMap, "operation", o.Operation)
populate(objectMap, "provider", o.Provider)
populate(objectMap, "resource", o.Resource)
return json.Marshal(objectMap)
} | [
-0.0980282872915268,
-0.6667476296424866,
0.3795863091945648,
-0.23589566349983215,
-0.5070350766181946,
-0.48068466782569885,
1.1626877784729004,
-0.29245930910110474,
0.42093491554260254,
0.3328338861465454,
0.1789349913597107,
0.04805667698383331,
0.36435097455978394,
0.2877940833568573... |
func (o *OperationDisplay) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
return fmt.Errorf("unmarshalling type %T: %v", o, err)
}
for key, val := range rawMsg {
var err error
switch key {
case "description":
err = unpopulate... | [
-0.4222696125507355,
-0.0570034384727478,
0.716328501701355,
-0.8391895890235901,
-0.9057877063751221,
-0.5583958625793457,
1.099440574645996,
-0.6187239289283752,
0.06422543525695801,
0.6627155542373657,
0.5890065431594849,
-0.7000767588615417,
0.2443346381187439,
0.763357937335968,
0.8... |
func (o OperationListResult) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
populate(objectMap, "nextLink", o.NextLink)
populate(objectMap, "value", o.Value)
return json.Marshal(objectMap)
} | [
-0.8783255219459534,
0.2593447268009186,
0.10099475085735321,
-0.14959090948104858,
-0.7621785402297974,
-0.9674838185310364,
0.7599955201148987,
-0.10206601023674011,
0.6411017775535583,
0.19296321272850037,
-0.7099853754043579,
-0.400545209646225,
-0.31309759616851807,
0.3807779848575592... |
func (o *OperationListResult) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
return fmt.Errorf("unmarshalling type %T: %v", o, err)
}
for key, val := range rawMsg {
var err error
switch key {
case "nextLink":
err = unpopulate... | [
-0.9549810290336609,
0.7735432982444763,
0.26176756620407104,
-1.0785037279129028,
-1.0105624198913574,
-1.2056912183761597,
0.6871576309204102,
-0.320782870054245,
-0.11378613114356995,
0.5957425236701965,
-0.6430268883705139,
-0.9972739815711975,
-0.46074342727661133,
0.5355521440505981,... |
func (p PatchResourceTags) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
populate(objectMap, "tags", p.Tags)
return json.Marshal(objectMap)
} | [
0.43276745080947876,
-0.27583807706832886,
0.05659320577979088,
-0.9832610487937927,
-0.3970772624015808,
-0.3798736333847046,
0.10626091063022614,
-0.18425849080085754,
0.4510459005832672,
0.40357375144958496,
-0.9623786211013794,
-0.5282508134841919,
-0.4850236475467682,
1.60090208053588... |
func (p *PatchResourceTags) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
return fmt.Errorf("unmarshalling type %T: %v", p, err)
}
for key, val := range rawMsg {
var err error
switch key {
case "tags":
err = unpopulate(val, ... | [
0.30890780687332153,
0.5191100835800171,
0.5123065710067749,
-1.663344144821167,
-1.0425057411193848,
-0.149800106883049,
0.10995038598775864,
-0.487353652715683,
0.0076291426084935665,
0.5194991827011108,
-0.3089800179004669,
-0.414359450340271,
-0.5492903590202332,
1.4656425714492798,
... |
func (p PatchResourceTagsAndSKU) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
populate(objectMap, "sku", p.SKU)
populate(objectMap, "tags", p.Tags)
return json.Marshal(objectMap)
} | [
0.2365211546421051,
-0.4493235945701599,
-0.04993591457605362,
-0.15803098678588867,
-1.0551433563232422,
-0.9169387221336365,
-0.17185163497924805,
0.13630202412605286,
0.5253370404243469,
0.024058181792497635,
-0.4060956835746765,
-0.05791383609175682,
0.3437356650829315,
1.6417417526245... |
func (p *PatchResourceTagsAndSKU) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
return fmt.Errorf("unmarshalling type %T: %v", p, err)
}
for key, val := range rawMsg {
var err error
switch key {
case "sku":
err = unpopulate(... | [
-0.31767508387565613,
0.34514203667640686,
0.48313993215560913,
-0.8594180345535278,
-1.4954705238342285,
-0.946040689945221,
-0.05491700768470764,
-0.16844962537288666,
-0.019361643120646477,
0.043453242629766464,
0.17074692249298096,
0.05467236414551735,
0.006592501420527697,
1.481069803... |
func (p PrivateEndpoint) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
populate(objectMap, "id", p.ID)
return json.Marshal(objectMap)
} | [
-1.2097529172897339,
-0.4042963683605194,
0.18976226449012756,
-0.4726595878601074,
0.32510581612586975,
-0.2536928653717041,
-0.03367709740996361,
-0.08244328945875168,
0.4752587378025055,
0.5228484272956848,
-1.4911365509033203,
0.26270315051078796,
-1.0502851009368896,
0.404342353343963... |
func (p *PrivateEndpoint) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
return fmt.Errorf("unmarshalling type %T: %v", p, err)
}
for key, val := range rawMsg {
var err error
switch key {
case "id":
err = unpopulate(val, "ID"... | [
-1.0207680463790894,
0.2842879593372345,
0.7117313742637634,
-1.0631258487701416,
-0.037933770567178726,
-0.1801660656929016,
0.10838337242603302,
-0.4734676480293274,
0.04244903475046158,
0.9344982504844666,
-0.5755537748336792,
-0.21655043959617615,
-0.9796104431152344,
0.329754114151001... |
func (p PrivateEndpointConnection) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
populate(objectMap, "etag", p.Etag)
populate(objectMap, "id", p.ID)
populate(objectMap, "location", p.Location)
populate(objectMap, "name", p.Name)
populate(objectMap, "properties", p.Properties)
populate(objectM... | [
-1.298991322517395,
-0.7377398610115051,
0.29375869035720825,
-0.5804391503334045,
0.037399232387542725,
-0.4560724198818207,
0.04049478471279144,
0.41993314027786255,
0.03261440247297287,
0.4100249409675598,
-0.7394331097602844,
0.0906316488981247,
-1.1194707155227661,
0.6058631539344788,... |
func (p *PrivateEndpointConnection) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
return fmt.Errorf("unmarshalling type %T: %v", p, err)
}
for key, val := range rawMsg {
var err error
switch key {
case "etag":
err = unpopula... | [
-1.3046247959136963,
-0.13975393772125244,
0.9393541216850281,
-1.185082197189331,
-0.33804890513420105,
-0.43356314301490784,
0.07834183424711227,
-0.35025909543037415,
-0.5543118715286255,
0.6480706930160522,
0.06113741919398308,
-0.15996117889881134,
-0.7338778972625732,
0.5663998126983... |
func (p PrivateEndpointConnectionListResult) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
populate(objectMap, "value", p.Value)
return json.Marshal(objectMap)
} | [
-1.363602638244629,
-0.004022800363600254,
-0.018261658027768135,
-0.33680638670921326,
0.03722712770104408,
-0.8723607063293457,
-0.3399066925048828,
-0.14649991691112518,
0.5538737773895264,
0.06959979236125946,
-0.9974523782730103,
-0.5865887403488159,
-0.7041261792182922,
0.50715088844... |
func (p *PrivateEndpointConnectionListResult) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
return fmt.Errorf("unmarshalling type %T: %v", p, err)
}
for key, val := range rawMsg {
var err error
switch key {
case "value":
err... | [
-1.2248015403747559,
0.6983153820037842,
0.39875856041908264,
-0.9037806391716003,
-0.40450212359428406,
-0.8627203702926636,
-0.2753000557422638,
-0.6037631630897522,
-0.020009098574519157,
0.7498753070831299,
-0.5900752544403076,
-0.9983742833137512,
-0.7301703095436096,
0.47943106293678... |
func (p PrivateEndpointConnectionProperties) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
populate(objectMap, "groupIds", p.GroupIDs)
populate(objectMap, "privateEndpoint", p.PrivateEndpoint)
populate(objectMap, "privateLinkServiceConnectionState", p.PrivateLinkServiceConnectionState)
populate... | [
-1.1498955488204956,
-0.979231059551239,
-0.05644243583083153,
-0.40545397996902466,
-0.08902378380298615,
-0.49975213408470154,
-0.13567081093788147,
0.34487393498420715,
-0.12407763302326202,
0.08875260502099991,
-0.3804711103439331,
-0.077682264149189,
-1.0825376510620117,
-0.0585081204... |
func (p *PrivateEndpointConnectionProperties) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
return fmt.Errorf("unmarshalling type %T: %v", p, err)
}
for key, val := range rawMsg {
var err error
switch key {
case "groupIds":
... | [
-1.3329479694366455,
-0.5186773538589478,
0.41061830520629883,
-0.879250705242157,
-0.6030411124229431,
-0.36116012930870056,
-0.2519250512123108,
-0.05595208331942558,
-0.36933356523513794,
0.4788094460964203,
0.3426477015018463,
-0.26906710863113403,
-0.9720211029052734,
-0.0686158686876... |
func (p PrivateLinkResource) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
populate(objectMap, "id", p.ID)
populate(objectMap, "name", p.Name)
populate(objectMap, "properties", p.Properties)
populate(objectMap, "type", p.Type)
return json.Marshal(objectMap)
} | [
-0.5745261311531067,
-1.355509877204895,
0.1375698745250702,
-0.76582270860672,
0.17050276696681976,
-0.45323050022125244,
0.01269749365746975,
0.32205021381378174,
0.5067285895347595,
-0.24686536192893982,
-0.9879550337791443,
0.8399398326873779,
-0.6173379421234131,
0.9332972168922424,
... |
func (p *PrivateLinkResource) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
return fmt.Errorf("unmarshalling type %T: %v", p, err)
}
for key, val := range rawMsg {
var err error
switch key {
case "id":
err = unpopulate(val, ... | [
-0.6559898257255554,
-0.3079739511013031,
0.47354185581207275,
-1.6270174980163574,
-0.3605521619319916,
-0.7207199931144714,
0.07296813279390335,
0.010050465352833271,
-0.1174001544713974,
0.3414047658443451,
-0.25179409980773926,
0.23248130083084106,
-0.904289186000824,
0.994340062141418... |
func (p PrivateLinkResourceListResult) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
populate(objectMap, "value", p.Value)
return json.Marshal(objectMap)
} | [
-0.7049471139907837,
-0.7113997936248779,
-0.039848245680332184,
-0.6409148573875427,
-0.1347256898880005,
-0.49425235390663147,
-0.05557356774806976,
0.1038593053817749,
1.020090937614441,
-0.33352363109588623,
-1.2946385145187378,
0.058880023658275604,
-0.6337214112281799,
0.941600143909... |
func (p *PrivateLinkResourceListResult) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
return fmt.Errorf("unmarshalling type %T: %v", p, err)
}
for key, val := range rawMsg {
var err error
switch key {
case "value":
err = unp... | [
-0.6107520461082458,
0.08685065060853958,
0.24310684204101562,
-1.1937966346740723,
-0.47265389561653137,
-0.8035250902175903,
-0.10104182362556458,
-0.08336067199707031,
0.3532264530658722,
0.2473950833082199,
-0.7687777876853943,
-0.35274195671081543,
-0.6896179914474487,
0.9675958752632... |
func (p PrivateLinkResourceProperties) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
populate(objectMap, "displayName", p.DisplayName)
populate(objectMap, "groupId", p.GroupID)
populate(objectMap, "requiredMembers", p.RequiredMembers)
populate(objectMap, "requiredZoneNames", p.RequiredZoneNames... | [
-0.11381323635578156,
-1.335536003112793,
-0.20089776813983917,
-0.6645318269729614,
-0.0637459009885788,
-0.07955831289291382,
0.7339881658554077,
0.024744175374507904,
0.3176541328430176,
-0.36154353618621826,
-0.6389665603637695,
0.5171023607254028,
-1.1834321022033691,
1.02211749553680... |
func (p *PrivateLinkResourceProperties) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
return fmt.Errorf("unmarshalling type %T: %v", p, err)
}
for key, val := range rawMsg {
var err error
switch key {
case "displayName":
err... | [
-0.3349958062171936,
-0.763886570930481,
0.20714357495307922,
-1.3185250759124756,
-0.6489138603210449,
-0.3404127061367035,
0.505508542060852,
-0.04405902698636055,
-0.12608033418655396,
0.0407089926302433,
-0.09405522048473358,
0.21167777478694916,
-1.140101432800293,
0.808456301689148,
... |
func (p PrivateLinkServiceConnectionState) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
populate(objectMap, "actionsRequired", p.ActionsRequired)
populate(objectMap, "description", p.Description)
populate(objectMap, "status", p.Status)
return json.Marshal(objectMap)
} | [
-0.5905361771583557,
-0.963273823261261,
0.1536443680524826,
-0.5683459639549255,
-0.39987823367118835,
-0.40293237566947937,
-0.18811079859733582,
0.16211651265621185,
0.6890170574188232,
-0.7755655646324158,
-0.310433566570282,
0.14319580793380737,
-0.12495239824056625,
1.04137122631073,... |
func (p *PrivateLinkServiceConnectionState) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
return fmt.Errorf("unmarshalling type %T: %v", p, err)
}
for key, val := range rawMsg {
var err error
switch key {
case "actionsRequired"... | [
-0.5892398357391357,
-0.129899799823761,
0.5871827006340027,
-1.2916983366012573,
-0.7665247917175293,
-0.5579743385314941,
-0.27473658323287964,
-0.13966473937034607,
0.08961143344640732,
-0.2467411309480667,
0.2060784250497818,
-0.28738635778427124,
-0.3868345022201538,
0.968292951583862... |
func (p ProxyResource) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
populate(objectMap, "id", p.ID)
populate(objectMap, "name", p.Name)
populate(objectMap, "type", p.Type)
return json.Marshal(objectMap)
} | [
-0.8004133105278015,
-0.6594555377960205,
0.015555519610643387,
-0.7318097949028015,
-0.4233185648918152,
-0.457161545753479,
-0.13720309734344482,
0.9395044445991516,
-0.3754124045372009,
0.41040539741516113,
-0.8741400241851807,
0.12808439135551453,
-0.4266652762889862,
0.756106972694397... |
func (p *ProxyResource) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
return fmt.Errorf("unmarshalling type %T: %v", p, err)
}
for key, val := range rawMsg {
var err error
switch key {
case "id":
err = unpopulate(val, "ID", ... | [
-0.7792770266532898,
0.4480157196521759,
0.4497400224208832,
-1.5936074256896973,
-0.7145169377326965,
-0.6143666505813599,
0.03424454480409622,
0.5004516243934631,
-0.9202907085418701,
0.6983374357223511,
-0.06385934352874756,
-0.3456920087337494,
-0.7328632473945618,
0.85423743724823,
... |
func (q QuotaLimit) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
populate(objectMap, "count", q.Count)
populate(objectMap, "renewalPeriod", q.RenewalPeriod)
populate(objectMap, "rules", q.Rules)
return json.Marshal(objectMap)
} | [
0.06441446393728256,
-0.6830384731292725,
0.16129401326179504,
-0.6743701696395874,
-0.8285483121871948,
-0.2012273073196411,
-0.4041416049003601,
0.4053916931152344,
0.30900806188583374,
0.5335299968719482,
-0.8506630659103394,
0.3483116328716278,
0.44048136472702026,
-0.4025401473045349,... |
func (q *QuotaLimit) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
return fmt.Errorf("unmarshalling type %T: %v", q, err)
}
for key, val := range rawMsg {
var err error
switch key {
case "count":
err = unpopulate(val, "Count... | [
-0.2625402808189392,
-0.022263947874307632,
0.5294222831726074,
-1.375827670097351,
-0.8444209694862366,
-0.517606258392334,
-0.4086897075176239,
-0.1975823938846588,
-0.3231686055660248,
0.8358567953109741,
-0.28418606519699097,
0.15074490010738373,
0.24079683423042297,
-0.024349879473447... |
func (r RegenerateKeyParameters) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
populate(objectMap, "keyName", r.KeyName)
return json.Marshal(objectMap)
} | [
-1.4143626689910889,
-0.020565539598464966,
0.403953492641449,
-0.2964988052845001,
0.045409489423036575,
-0.6409956216812134,
0.24740172922611237,
0.38005974888801575,
-0.0684545487165451,
0.9526193141937256,
-1.1693693399429321,
0.5675264000892639,
-1.185569405555725,
0.5746012926101685,... |
func (r *RegenerateKeyParameters) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
return fmt.Errorf("unmarshalling type %T: %v", r, err)
}
for key, val := range rawMsg {
var err error
switch key {
case "keyName":
err = unpopul... | [
-1.5610096454620361,
0.9125385284423828,
0.7085685729980469,
-1.1385180950164795,
-0.3715718388557434,
-0.45444488525390625,
0.13681533932685852,
-0.14247849583625793,
-0.8207842707633972,
1.1213774681091309,
-0.44061973690986633,
-0.1548413783311844,
-1.1371480226516724,
0.714152336120605... |
func (r RegionSetting) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
populate(objectMap, "customsubdomain", r.Customsubdomain)
populate(objectMap, "name", r.Name)
populate(objectMap, "value", r.Value)
return json.Marshal(objectMap)
} | [
-0.5745479464530945,
-0.3766939640045166,
0.15171921253204346,
-0.44383272528648376,
-0.9289727210998535,
-0.4811194837093353,
0.34235286712646484,
-0.39654821157455444,
0.3293335735797882,
0.5184038877487183,
-1.0389851331710815,
0.8049690127372742,
-0.36832866072654724,
0.493231862783432... |
func (r *RegionSetting) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
return fmt.Errorf("unmarshalling type %T: %v", r, err)
}
for key, val := range rawMsg {
var err error
switch key {
case "customsubdomain":
err = unpopulat... | [
-0.5975738167762756,
0.40897512435913086,
0.45722824335098267,
-1.073314905166626,
-1.2081084251403809,
-0.44385042786598206,
0.3996289074420929,
-0.5696878433227539,
-0.26161447167396545,
0.9381319284439087,
-0.22882629930973053,
0.2485267072916031,
-0.3632639944553375,
0.5541894435882568... |
func (r RequestMatchPattern) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
populate(objectMap, "method", r.Method)
populate(objectMap, "path", r.Path)
return json.Marshal(objectMap)
} | [
-0.9459735155105591,
-0.4723278880119324,
0.5219115614891052,
0.09731962531805038,
-0.517935037612915,
-0.11140584945678711,
0.8994396328926086,
-0.23405924439430237,
0.5255337357521057,
-0.1841364949941635,
-0.6746364831924438,
0.7901728749275208,
-0.5782037377357483,
0.323853075504303,
... |
func (r *RequestMatchPattern) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
return fmt.Errorf("unmarshalling type %T: %v", r, err)
}
for key, val := range rawMsg {
var err error
switch key {
case "method":
err = unpopulate(v... | [
-1.2587854862213135,
0.4301578104496002,
1.0256361961364746,
-0.618966281414032,
-0.7870803475379944,
-0.2559932470321655,
0.6079629063606262,
-0.48055464029312134,
0.15933412313461304,
0.05001967400312424,
-0.25283682346343994,
0.21525906026363373,
-0.6415901780128479,
0.4180988669395447,... |
func (r Resource) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
populate(objectMap, "id", r.ID)
populate(objectMap, "name", r.Name)
populate(objectMap, "type", r.Type)
return json.Marshal(objectMap)
} | [
-0.8777968883514404,
-0.898134171962738,
-0.024890122935175896,
-0.543589174747467,
-0.33701616525650024,
-0.22753667831420898,
0.18799860775470734,
0.22152574360370636,
0.11074871569871902,
0.5953803062438965,
-1.4155958890914917,
0.1705237776041031,
-0.29487720131874084,
0.90483772754669... |
func (r *Resource) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
return fmt.Errorf("unmarshalling type %T: %v", r, err)
}
for key, val := range rawMsg {
var err error
switch key {
case "id":
err = unpopulate(val, "ID", &r.ID... | [
-0.8664267659187317,
0.31368371844291687,
0.3487127125263214,
-1.2595819234848022,
-0.4554935097694397,
-0.41652464866638184,
0.29638394713401794,
-0.14844392240047455,
-0.26154381036758423,
1.0889763832092285,
-0.3616752624511719,
-0.4733581244945526,
-0.6192168593406677,
0.87114745378494... |
func (r ResourceSKU) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
populate(objectMap, "kind", r.Kind)
populate(objectMap, "locations", r.Locations)
populate(objectMap, "name", r.Name)
populate(objectMap, "resourceType", r.ResourceType)
populate(objectMap, "restrictions", r.Restrictions)
popu... | [
-0.812274694442749,
-0.5052695274353027,
0.01221270952373743,
-0.472413569688797,
-0.5778151154518127,
-0.647820770740509,
0.34235402941703796,
0.15834031999111176,
-0.043078936636447906,
-0.5384202003479004,
-0.15773211419582367,
0.327623188495636,
-0.004087209701538086,
1.153039574623108... |
func (r *ResourceSKU) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
return fmt.Errorf("unmarshalling type %T: %v", r, err)
}
for key, val := range rawMsg {
var err error
switch key {
case "kind":
err = unpopulate(val, "Kind"... | [
-0.9261921644210815,
0.14695300161838531,
0.5010259747505188,
-0.8113394379615784,
-0.7297126650810242,
-0.6505375504493713,
0.5046908259391785,
-0.3026520013809204,
-0.44989705085754395,
-0.33281633257865906,
0.6590954065322876,
0.32345977425575256,
-0.21794019639492035,
1.360795259475708... |
func (r ResourceSKUListResult) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
populate(objectMap, "nextLink", r.NextLink)
populate(objectMap, "value", r.Value)
return json.Marshal(objectMap)
} | [
-0.5687695145606995,
-0.24383264780044556,
-0.25656524300575256,
-0.2628251612186432,
-0.7713169455528259,
-0.9384352564811707,
0.307784765958786,
-0.28384193778038025,
0.26821959018707275,
0.047997310757637024,
-0.7939857244491577,
-0.10182784497737885,
-0.32757285237312317,
0.83329784870... |
func (r *ResourceSKUListResult) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
return fmt.Errorf("unmarshalling type %T: %v", r, err)
}
for key, val := range rawMsg {
var err error
switch key {
case "nextLink":
err = unpopula... | [
-0.7201336026191711,
0.434612512588501,
0.021506840363144875,
-0.9048200845718384,
-1.0174659490585327,
-1.206268310546875,
0.34126096963882446,
-0.5297648906707764,
-0.3391810655593872,
0.3443528413772583,
-0.15315169095993042,
-0.4601150453090668,
-0.42631828784942627,
0.8852396011352539... |
func (r ResourceSKURestrictionInfo) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
populate(objectMap, "locations", r.Locations)
populate(objectMap, "zones", r.Zones)
return json.Marshal(objectMap)
} | [
0.05029386281967163,
-0.18349137902259827,
0.2719190716743469,
-0.20260751247406006,
-0.9069063663482666,
-0.580437421798706,
0.37976202368736267,
0.10576634854078293,
-0.3263145387172699,
0.42976221442222595,
-0.5672835111618042,
-0.20738360285758972,
-0.013237087056040764,
-0.03648077324... |
func (r *ResourceSKURestrictionInfo) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
return fmt.Errorf("unmarshalling type %T: %v", r, err)
}
for key, val := range rawMsg {
var err error
switch key {
case "locations":
err = un... | [
-0.1842728853225708,
0.6792137622833252,
0.5371754765510559,
-0.8648116588592529,
-0.9853435158729553,
-0.891058623790741,
0.34650111198425293,
-0.25265681743621826,
-0.9491319060325623,
0.6055695414543152,
-0.07093660533428192,
-0.32574108242988586,
-0.06227114796638489,
0.026828773319721... |
func (r ResourceSKURestrictions) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
populate(objectMap, "reasonCode", r.ReasonCode)
populate(objectMap, "restrictionInfo", r.RestrictionInfo)
populate(objectMap, "type", r.Type)
populate(objectMap, "values", r.Values)
return json.Marshal(objectMap)
} | [
-0.09337706118822098,
0.47154831886291504,
0.31890666484832764,
-0.3338927924633026,
-0.5320684313774109,
-0.8475386500358582,
0.4811180531978607,
-0.4639727473258972,
-0.27584558725357056,
0.3873932361602783,
-0.5858540534973145,
0.3907558023929596,
-0.4354565441608429,
0.3956266343593597... |
func (r *ResourceSKURestrictions) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
return fmt.Errorf("unmarshalling type %T: %v", r, err)
}
for key, val := range rawMsg {
var err error
switch key {
case "reasonCode":
err = unpo... | [
-0.6082736253738403,
0.9649732708930969,
0.5748223662376404,
-0.8471180200576782,
-0.8110978007316589,
-0.7581647038459778,
0.37414711713790894,
-0.7960448265075684,
-0.7433819770812988,
0.7256436347961426,
-0.15275530517101288,
0.14464370906352997,
-0.5565550327301025,
0.37056782841682434... |
func (s SKU) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
populate(objectMap, "capacity", s.Capacity)
populate(objectMap, "family", s.Family)
populate(objectMap, "name", s.Name)
populate(objectMap, "size", s.Size)
populate(objectMap, "tier", s.Tier)
return json.Marshal(objectMap)
} | [
-0.41661861538887024,
-0.5302069783210754,
0.21996764838695526,
0.34986820816993713,
-0.7591983675956726,
-0.9936111569404602,
0.08546969294548035,
0.8304381966590881,
0.29757922887802124,
-0.13637402653694153,
-1.1486490964889526,
1.0057995319366455,
0.237673819065094,
0.6232030391693115,... |
func (s *SKU) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
return fmt.Errorf("unmarshalling type %T: %v", s, err)
}
for key, val := range rawMsg {
var err error
switch key {
case "capacity":
err = unpopulate(val, "Capacity"... | [
-0.7397245764732361,
0.1442924290895462,
0.6126316785812378,
-0.47602540254592896,
-0.7797535061836243,
-0.7797311544418335,
0.41641390323638916,
0.08473307639360428,
-0.3318963050842285,
0.26205384731292725,
-0.4173790514469147,
0.7065821886062622,
-0.3288511633872986,
0.7979676127433777,... |
func (s SKUAvailability) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
populate(objectMap, "kind", s.Kind)
populate(objectMap, "message", s.Message)
populate(objectMap, "reason", s.Reason)
populate(objectMap, "skuAvailable", s.SKUAvailable)
populate(objectMap, "skuName", s.SKUName)
populate(o... | [
-0.8708634376525879,
-0.6704965829849243,
-0.013656379655003548,
0.21137508749961853,
-0.9140487909317017,
-0.518958330154419,
-0.2614465057849884,
1.0445125102996826,
0.5522753596305847,
1.1918822526931763,
-0.6963038444519043,
0.8438611626625061,
-0.17049507796764374,
0.5018476247787476,... |
func (s *SKUAvailability) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
return fmt.Errorf("unmarshalling type %T: %v", s, err)
}
for key, val := range rawMsg {
var err error
switch key {
case "kind":
err = unpopulate(val, "K... | [
-1.188551425933838,
-0.2195311188697815,
0.4092853367328644,
-0.32271844148635864,
-1.1625447273254395,
-0.4175562858581543,
-0.12051772326231003,
0.5165061354637146,
-0.28245916962623596,
1.2673699855804443,
0.0949249118566513,
0.5965589880943298,
-0.113383449614048,
0.6287795901298523,
... |
func (s SKUAvailabilityListResult) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
populate(objectMap, "value", s.Value)
return json.Marshal(objectMap)
} | [
-0.4189000129699707,
0.05989016219973564,
-0.16876773536205292,
0.2763896882534027,
-1.122024655342102,
-0.533446192741394,
-0.585608720779419,
1.0775327682495117,
0.8187078833580017,
1.4721283912658691,
-1.2252039909362793,
-0.09321875870227814,
-0.19348113238811493,
0.3393575847148895,
... |
func (s *SKUAvailabilityListResult) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
return fmt.Errorf("unmarshalling type %T: %v", s, err)
}
for key, val := range rawMsg {
var err error
switch key {
case "value":
err = unpopul... | [
-0.6886087656021118,
0.7720706462860107,
0.10672858357429504,
-0.5187274813652039,
-1.3812466859817505,
-0.7590477466583252,
-0.40028566122055054,
0.5716485381126404,
-0.11992594599723816,
1.491176962852478,
-0.6948069334030151,
-0.44954657554626465,
-0.21292291581630707,
0.578051030635833... |
func (s SKUCapability) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
populate(objectMap, "name", s.Name)
populate(objectMap, "value", s.Value)
return json.Marshal(objectMap)
} | [
-0.7593988180160522,
-0.7894334197044373,
0.13216175138950348,
0.9487102031707764,
-1.0918971300125122,
-0.6573540568351746,
0.3102567195892334,
0.9094730019569397,
0.7952161431312561,
1.4629192352294922,
-0.7076659202575684,
0.08341547101736069,
0.018986698240041733,
0.1116442084312439,
... |
func (s *SKUCapability) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
return fmt.Errorf("unmarshalling type %T: %v", s, err)
}
for key, val := range rawMsg {
var err error
switch key {
case "name":
err = unpopulate(val, "Nam... | [
-1.010297179222107,
0.08341294527053833,
0.544926643371582,
0.19714802503585815,
-1.1213947534561157,
-0.8044571280479431,
0.39159587025642395,
0.48744088411331177,
-0.07234600186347961,
1.504740595817566,
-0.11348012834787369,
-0.1506400853395462,
-0.28352856636047363,
0.5794302821159363,... |
func (s SKUChangeInfo) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
populate(objectMap, "countOfDowngrades", s.CountOfDowngrades)
populate(objectMap, "countOfUpgradesAfterDowngrades", s.CountOfUpgradesAfterDowngrades)
populate(objectMap, "lastChangeDate", s.LastChangeDate)
return json.Marshal(... | [
-0.18344075977802277,
-0.6471614241600037,
0.23176434636116028,
0.04850415512919426,
-0.8935514092445374,
-0.27196720242500305,
0.16369128227233887,
-0.08104611188173294,
0.33907729387283325,
0.40630051493644714,
-0.5308411121368408,
0.7699036002159119,
0.2209549844264984,
1.25236976146698... |
func (s *SKUChangeInfo) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
return fmt.Errorf("unmarshalling type %T: %v", s, err)
}
for key, val := range rawMsg {
var err error
switch key {
case "countOfDowngrades":
err = unpopul... | [
-0.4322621822357178,
-0.05136873573064804,
0.4601719379425049,
-0.868031919002533,
-1.0808292627334595,
-0.35432448983192444,
0.07449501752853394,
-0.33203446865081787,
-0.29391005635261536,
0.6503264904022217,
-0.2242000550031662,
0.40511375665664673,
-0.025561969727277756,
1.251127719879... |
func (s SystemData) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
populateTimeRFC3339(objectMap, "createdAt", s.CreatedAt)
populate(objectMap, "createdBy", s.CreatedBy)
populate(objectMap, "createdByType", s.CreatedByType)
populateTimeRFC3339(objectMap, "lastModifiedAt", s.LastModifiedAt)
popu... | [
-0.4919140338897705,
-0.33797702193260193,
0.13278748095035553,
-0.10887731611728668,
0.07258681207895279,
-0.09654828906059265,
0.5156753659248352,
-0.17912274599075317,
0.36761587858200073,
-0.3384203314781189,
-0.8849174380302429,
0.5521902441978455,
-0.33875545859336853,
1.388051390647... |
func (s *SystemData) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
return fmt.Errorf("unmarshalling type %T: %v", s, err)
}
for key, val := range rawMsg {
var err error
switch key {
case "createdAt":
err = unpopulateTimeRFC3... | [
-0.8221862316131592,
0.1677194982767105,
0.58311527967453,
-0.9336082339286804,
-0.44084611535072327,
-0.39055335521698,
0.6063258051872253,
-0.4381245970726013,
-0.30237331986427307,
0.10529487580060959,
-0.39263370633125305,
0.10867628455162048,
-0.3338434398174286,
1.388059139251709,
... |
func (t ThrottlingRule) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
populate(objectMap, "count", t.Count)
populate(objectMap, "dynamicThrottlingEnabled", t.DynamicThrottlingEnabled)
populate(objectMap, "key", t.Key)
populate(objectMap, "matchPatterns", t.MatchPatterns)
populate(objectMap, "m... | [
0.562803328037262,
0.21118763089179993,
-0.13299240171909332,
-0.9375786185264587,
0.37513965368270874,
0.32748469710350037,
0.09750743955373764,
0.6599847078323364,
-1.0846587419509888,
1.0426057577133179,
-0.22965389490127563,
-0.026282763108611107,
-0.007502182852476835,
0.3375038504600... |
func (t *ThrottlingRule) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
return fmt.Errorf("unmarshalling type %T: %v", t, err)
}
for key, val := range rawMsg {
var err error
switch key {
case "count":
err = unpopulate(val, "C... | [
-0.0037918321322649717,
0.5795552134513855,
0.37992560863494873,
-1.339435338973999,
-0.28118371963500977,
-0.00516695249825716,
0.36976858973503113,
-0.12127317488193512,
-0.9796628952026367,
0.8883188366889954,
0.08378367871046066,
0.07955897599458694,
-0.3749523460865021,
0.424362540245... |
func (u Usage) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
populate(objectMap, "currentValue", u.CurrentValue)
populate(objectMap, "limit", u.Limit)
populate(objectMap, "name", u.Name)
populate(objectMap, "nextResetTime", u.NextResetTime)
populate(objectMap, "quotaPeriod", u.QuotaPeriod)
po... | [
-0.9098469614982605,
-0.358963280916214,
0.5513851642608643,
-0.47589853405952454,
-0.4296398460865021,
-0.7302940487861633,
0.8377634286880493,
0.18541869521141052,
0.3347052037715912,
0.3903902471065521,
-0.1491929441690445,
0.37999793887138367,
0.10507013648748398,
0.3353508710861206,
... |
func (u *Usage) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
return fmt.Errorf("unmarshalling type %T: %v", u, err)
}
for key, val := range rawMsg {
var err error
switch key {
case "currentValue":
err = unpopulate(val, "Cur... | [
-1.0862385034561157,
0.25680723786354065,
0.8989014029502869,
-0.9242879748344421,
-0.3539194166660309,
-0.6678688526153564,
0.9208707809448242,
-0.25969749689102173,
-0.2659417986869812,
0.7351261973381042,
0.403720498085022,
-0.033378928899765015,
-0.3008677363395691,
0.6433466672897339,... |
func (u UsageListResult) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
populate(objectMap, "nextLink", u.NextLink)
populate(objectMap, "value", u.Value)
return json.Marshal(objectMap)
} | [
-0.34627416729927063,
0.34556058049201965,
0.04124568775296211,
-0.30905741453170776,
-0.30220532417297363,
-1.0218133926391602,
0.0486859530210495,
0.5694364905357361,
0.567076563835144,
0.20749019086360931,
-0.862172544002533,
-0.08416830748319626,
-0.624152660369873,
0.8072558045387268,... |
func (u *UsageListResult) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
return fmt.Errorf("unmarshalling type %T: %v", u, err)
}
for key, val := range rawMsg {
var err error
switch key {
case "nextLink":
err = unpopulate(val... | [
-0.6858097314834595,
0.7621405720710754,
0.2616959810256958,
-1.2246419191360474,
-0.5738470554351807,
-1.2700444459915161,
0.21453975141048431,
0.09636881947517395,
-0.1254805624485016,
0.677518904209137,
-0.38461416959762573,
-0.5880066752433777,
-0.6155950427055359,
0.913185715675354,
... |
func (u UserAssignedIdentity) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
populate(objectMap, "clientId", u.ClientID)
populate(objectMap, "principalId", u.PrincipalID)
return json.Marshal(objectMap)
} | [
-0.450930655002594,
-1.695876955986023,
-0.01611674763262272,
-0.15203054249286652,
-0.035448405891656876,
0.40224289894104004,
0.9429892897605896,
0.12939144670963287,
0.5594114661216736,
-0.16613619029521942,
-1.0063278675079346,
0.8714855909347534,
0.766880452632904,
0.9413028955459595,... |
func (u *UserAssignedIdentity) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
return fmt.Errorf("unmarshalling type %T: %v", u, err)
}
for key, val := range rawMsg {
var err error
switch key {
case "clientId":
err = unpopulat... | [
-0.6531016826629639,
-0.8293138742446899,
0.5028374195098877,
-1.0434041023254395,
-0.5010051131248474,
0.056513071060180664,
0.9066799879074097,
-0.4730690121650696,
0.1934354454278946,
0.473033607006073,
-0.40846267342567444,
0.3557420074939728,
0.5451198816299438,
1.1762109994888306,
... |
func (u UserOwnedStorage) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
populate(objectMap, "identityClientId", u.IdentityClientID)
populate(objectMap, "resourceId", u.ResourceID)
return json.Marshal(objectMap)
} | [
-0.18665049970149994,
-1.2850444316864014,
0.14868484437465668,
-0.2578109800815582,
0.18281322717666626,
-0.49298617243766785,
0.7910723686218262,
-0.13241630792617798,
0.511698305606842,
-0.6772229671478271,
-0.6658438444137573,
0.33004602789878845,
0.18879130482673645,
0.606464087963104... |
func (u *UserOwnedStorage) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
return fmt.Errorf("unmarshalling type %T: %v", u, err)
}
for key, val := range rawMsg {
var err error
switch key {
case "identityClientId":
err = unpop... | [
-0.3935157358646393,
-0.21973282098770142,
0.573720395565033,
-0.7623204588890076,
-0.3048105239868164,
-0.3726918399333954,
1.0576300621032715,
-0.4333075284957886,
-0.06608250737190247,
-0.2960667610168457,
-0.21303150057792664,
-0.26691731810569763,
-0.026905378326773643,
0.715932905673... |
func (v VirtualNetworkRule) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
populate(objectMap, "id", v.ID)
populate(objectMap, "ignoreMissingVnetServiceEndpoint", v.IgnoreMissingVnetServiceEndpoint)
populate(objectMap, "state", v.State)
return json.Marshal(objectMap)
} | [
0.7465440034866333,
-0.20986054837703705,
-0.34241610765457153,
-0.7828400731086731,
0.47593188285827637,
0.07659520953893661,
-0.39484965801239014,
0.6574246287345886,
-0.07567189633846283,
0.9473936557769775,
-0.4305192530155182,
-0.3540167808532715,
-0.305563747882843,
0.755037069320678... |
func (v *VirtualNetworkRule) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
return fmt.Errorf("unmarshalling type %T: %v", v, err)
}
for key, val := range rawMsg {
var err error
switch key {
case "id":
err = unpopulate(val, "... | [
0.34553277492523193,
0.35221269726753235,
0.2711253762245178,
-1.3088583946228027,
0.09662536531686783,
-0.11702314764261246,
-0.25751036405563354,
0.22935974597930908,
-0.6254080533981323,
1.1173090934753418,
-0.19933852553367615,
-0.3773927390575409,
-0.4782354235649109,
0.74578970670700... |
func validMAC(message, messageMAC, key []byte, shaVersion string) (bool, error) {
var mac hash.Hash
switch shaVersion {
case "sha256":
mac = hmac.New(sha256.New, key)
case "sha512":
mac = hmac.New(sha512.New, key)
default:
return false, fmt.Errorf("unsupported SHA version: %s", shaVersion)
}
mac.Write(mes... | [
0.1560012400150299,
-0.2830170691013336,
0.6818774342536926,
0.4090224802494049,
-0.49651017785072327,
0.7556309103965759,
0.04380742087960243,
-0.1433820277452469,
0.22374440729618073,
0.22965583205223083,
0.3317417502403259,
0.12408310174942017,
-0.771759033203125,
0.44729849696159363,
... |
func CreateHash(message, key []byte, shaVersion string) ([]byte, error) {
var mac hash.Hash
switch shaVersion {
case "sha256":
mac = hmac.New(sha256.New, key)
case "sha512":
mac = hmac.New(sha512.New, key)
default:
return nil, fmt.Errorf("unsupported SHA version: %s", shaVersion)
}
mac.Write(message)
ha... | [
0.8686655163764954,
-0.2995339334011078,
0.6422772407531738,
0.8151063919067383,
-0.29965707659721375,
0.5139315128326416,
-0.24452099204063416,
-0.2967495620250702,
-0.04836101084947586,
0.7563172578811646,
0.2737976014614105,
0.11135531961917877,
-1.1194815635681152,
0.4376963973045349,
... |
func Verify(bytesIn []byte, encodedHash string, secretKey string, shaVersion string) error {
var results error
if strings.Contains(encodedHash, "=") {
shaName := strings.Split(encodedHash, "=")
if shaName[0] != shaVersion {
return fmt.Errorf("incorrect hashing method: %s", shaName[0])
}
messageMAC := sh... | [
0.7125260829925537,
-0.06945502758026123,
0.6155683398246765,
0.9421678781509399,
-0.2128123939037323,
0.1496467888355255,
-0.29451149702072144,
0.24247132241725922,
-0.18979917466640472,
-0.24466657638549805,
-0.5503700971603394,
1.2745835781097412,
-1.05348801612854,
1.2260631322860718,
... |
func main() {
gollery.CliAccess()
} | [
0.8994569182395935,
-0.1292060911655426,
0.36540254950523376,
1.1958966255187988,
1.1819263696670532,
0.05032842978835106,
0.3523372709751129,
-0.11791165918111801,
-1.2098146677017212,
0.0019349806243553758,
0.1809079945087433,
0.6802251935005188,
-0.3241354525089264,
-0.3741014301776886,... |
func (app *Application) ContactRead(w http.ResponseWriter, r *http.Request) {
id := r.URL.Query().Get("id")
c, err := contactRead(app.db, id)
if err != nil {
fail(w, r, err)
return
}
write(w, r, Response{Ok: true, Data: c})
} | [
-0.020429447293281555,
-0.9403661489486694,
0.6463444232940674,
0.22789794206619263,
-0.571502685546875,
0.7614643573760986,
0.05935844033956528,
-0.5074862837791443,
0.3191296458244324,
-0.13202384114265442,
1.3296961784362793,
0.08473342657089233,
-0.2703457176685333,
-0.2829007208347320... |
func PostCreateEndpoint(creator creating.Service) func(w http.ResponseWriter, r *http.Request) {
return func(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Type", "application/json")
var post model.Post
err := json.NewDecoder(r.Body).Decode(&post)
if err != nil {
log.Printf("Error decodi... | [
-0.3209206759929657,
-0.5057574510574341,
0.6176316142082214,
0.7369579672813416,
-0.2956485152244568,
0.2989802956581116,
-0.31984373927116394,
-0.44871142506599426,
-1.0455459356307983,
0.14418821036815643,
-0.5808588266372681,
-0.4921138286590576,
-0.01257406733930111,
0.716696321964263... |
func PostListEndpoint(reader reading.Service) func(w http.ResponseWriter, r *http.Request) {
return func(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Type", "application/json")
params := r.URL.Query()
items, totalItems, err := reader.PostList(params)
if err != nil {
log.Printf("Error l... | [
-0.7172521352767944,
-1.2597852945327759,
0.901100218296051,
-0.7687414884567261,
-0.42064133286476135,
-0.17854300141334534,
-0.4259151518344879,
0.6847195029258728,
-0.34836918115615845,
0.7384014129638672,
-0.7103779911994934,
-0.43636974692344666,
-0.19996337592601776,
0.02421669289469... |
func PostDetailEndpoint(reader reading.Service) func(w http.ResponseWriter, r *http.Request) {
return func(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Type", "application/json")
id := mux.Vars(r)["id"]
post, err := reader.PostDetail(id)
if err != nil {
log.Printf("Error getting post d... | [
-0.3043741285800934,
-0.8035116195678711,
0.874929666519165,
-0.009669167920947075,
-0.43425309658050537,
0.09963776916265488,
-0.2864784002304077,
-0.03835495933890343,
-0.19678616523742676,
0.5109444260597229,
-0.43814271688461304,
0.0148530388250947,
-0.314166396856308,
0.02063070982694... |
func PostUpdateEndpoint(updater updating.Service) func(w http.ResponseWriter, r *http.Request) {
return func(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Type", "application/json")
id := mux.Vars(r)["id"]
var post model.Post
err := json.NewDecoder(r.Body).Decode(&post)
if err != nil {
... | [
-0.4635787904262543,
-0.9365862011909485,
0.8413009643554688,
0.1824466586112976,
-1.3721950054168701,
0.33031269907951355,
-0.4494858980178833,
0.17695416510105133,
0.025116773322224617,
0.3918631076812744,
-0.30913636088371277,
-0.4756213128566742,
-0.5713910460472107,
-0.016448015347123... |
func PostDeleteEndpoint(deleter deleting.Service) func(w http.ResponseWriter, r *http.Request) {
return func(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Type", "application/json")
id := mux.Vars(r)["id"]
// Delete a post.
err := deleter.PostDelete(id)
if err != nil {
log.Println("E... | [
0.04088941961526871,
-0.5650812387466431,
0.371477335691452,
0.22487851977348328,
-0.14557908475399017,
-0.4033766984939575,
-0.5486131906509399,
-0.21654967963695526,
0.003744234796613455,
0.14523504674434662,
-0.3424619734287262,
0.12780676782131195,
-0.3631090819835663,
0.05745008960366... |
func (d *Dameon) Start(netinterface string) error {
d.pm = NewPM()
go d.monitorProcs()
var err error
var absPath string
// Ensure single instance
if absPath, err = filepath.Abs(utils.Options.LockFile); err != nil {
return err
}
if d.lockfile, err = lockfile.New(absPath); err != nil {
return err
}
if e... | [
0.04296085983514786,
0.6740995645523071,
0.7849110960960388,
-0.7392139434814453,
0.7778512835502625,
0.9571154117584229,
0.18024222552776337,
-0.16067607700824738,
-0.6175345182418823,
0.5358908176422119,
-0.04821742698550224,
0.20563994348049164,
-0.6820544004440308,
0.7012367248535156,
... |
func (d *Dameon) Stop(closeProcs bool) {
d.lockfile.Unlock()
d.listener.Close()
d.pm.Shutdown(closeProcs)
} | [
-0.6624557375907898,
-0.034475624561309814,
0.38870710134506226,
-0.5802937150001526,
0.3197391927242279,
0.943433403968811,
0.0265083909034729,
0.1857590675354004,
-0.7218344807624817,
0.019774427637457848,
-0.3168121874332428,
-0.24409599602222443,
-0.6591225862503052,
-0.177364408969879... |
func (e *Kevent) RenderDefaultTemplate() ([]byte, error) {
tmpl, err := template.New("event").Parse(Template)
if err != nil {
return nil, err
}
return renderTemplate(e, tmpl)
} | [
0.06533107906579971,
0.7232524752616882,
0.48750314116477966,
0.017601070925593376,
0.1726735234260559,
-0.49654000997543335,
-0.708022952079773,
0.9796341061592102,
0.1524249017238617,
0.5832720398902893,
-0.6687818765640259,
-1.19636070728302,
-1.4041664600372314,
0.9470762610435486,
-... |
func (e *Kevent) RenderCustomTemplate(tmpl *template.Template) ([]byte, error) {
return renderTemplate(e, tmpl)
} | [
-0.23460735380649567,
0.004472726956009865,
0.3936670124530792,
-0.5113615393638611,
-1.086259365081787,
-0.6481649279594421,
-0.7291276454925537,
0.7639529705047607,
0.4358988404273987,
0.8937190771102905,
-1.3482794761657715,
-0.4863296449184418,
-1.2328057289123535,
1.0561681985855103,
... |
func (k *K8sClusterAdapter) ProvisionCluster(ctx context.Context) errors.Error {
stateStoreURL, err := k.support.StateStoreURL(ctx)
if err != nil {
return errors.NewK8sProvisionerKopsExecError().WithCause(err)
}
vars, err := k.support.EnvironmentVariables(ctx)
if err != nil {
return errors.NewK8sProvisionerKo... | [
-0.16944126784801483,
-0.3587084114551544,
0.46913936734199524,
-0.274701327085495,
0.33272287249565125,
0.12431862950325012,
0.736554741859436,
0.8590263724327087,
0.6221840977668762,
0.6618185043334961,
0.2898874580860138,
0.3557743728160858,
0.06395313143730164,
0.6049177050590515,
1.... |
func (k K8sClusterAdapter) generateInitialClusterResourcesHack(ctx context.Context) (*resources, errors.Error) {
stateStoreURL, err := k.support.StateStoreURL(ctx)
if err != nil {
return nil, errors.NewK8sProvisionerKopsExecError().WithCause(err)
}
vars, err := k.support.EnvironmentVariables(ctx)
if err != nil ... | [
0.23232610523700714,
-0.2810860872268677,
0.5949397087097168,
-0.19901475310325623,
0.1999245584011078,
-0.1666860580444336,
0.08056807518005371,
0.04980359226465225,
0.3489915728569031,
0.9235859513282776,
0.25893476605415344,
0.06473071128129959,
-0.19974876940250397,
0.2163519710302353,... |
func NewK8sClusterAdapter(spec *models.K8sProvisionerSpec, ks KopsSupporter, workdir string) *K8sClusterAdapter {
return &K8sClusterAdapter{
spec: spec,
support: ks,
workdir: workdir,
}
} | [
-0.32145586609840393,
-0.9957702159881592,
0.07940369844436646,
0.2618386745452881,
-1.0404078960418701,
-0.22659844160079956,
-0.7294954657554626,
0.3479958176612854,
1.2528712749481201,
0.6498231291770935,
0.5658801198005676,
0.9689750075340271,
0.060321807861328125,
-0.7270781397819519,... |
func (r *resources) UnmarshalJSON(b []byte) error {
items := []json.RawMessage{}
if err := json.Unmarshal(b, &items); err != nil {
return err
}
for _, item := range items {
k := kind{}
if err := json.Unmarshal(item, &k); err != nil {
return err
}
switch k.Kind {
case "Cluster":
cluster := kops.... | [
-0.7567588686943054,
0.3558740019798279,
0.5261103510856628,
-1.5008708238601685,
-0.44986408948898315,
-0.3593304455280304,
0.4587995707988739,
-0.09938769787549973,
-0.018828444182872772,
0.769538938999176,
-0.10361324995756149,
0.08298388868570328,
-0.8280405402183533,
0.091197587549686... |
func (*DataDataMigrateReq) Descriptor() ([]byte, []int) {
return file_proto_DataData_DataData_proto_rawDescGZIP(), []int{0}
} | [
-1.3130731582641602,
0.30700090527534485,
0.7071427702903748,
-0.8770999312400818,
0.9930580258369446,
-0.5527394413948059,
-0.48317644000053406,
0.5510320067405701,
-0.6582869291305542,
-1.0201985836029053,
-0.8733859062194824,
0.4634045958518982,
-0.6318135857582092,
0.6636656522750854,
... |
func (*DataDataMigrateResp) Descriptor() ([]byte, []int) {
return file_proto_DataData_DataData_proto_rawDescGZIP(), []int{1}
} | [
0.2326730489730835,
-0.05295364186167717,
0.2788180112838745,
-1.1918766498565674,
0.648744523525238,
-0.5176243185997009,
-0.5346638560295105,
-0.35592585802078247,
0.4530443251132965,
-0.35610640048980713,
-1.1346405744552612,
-0.4948846995830536,
-0.9825642108917236,
-0.3393163383007049... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.